<table border="0" align="center" cellpadding="0" cellspacing="1" class="navi">
  <tr>
    <th>当前位置：焦点图管理</th>
  </tr>
</table>
<script type="text/javascript">
var base = <?=json_encode(SystemProperties::$app_host)?>;

function deleteFocus(name){
    if (confirm('确认删除?')) {
	   window.location.href = base+"/user/deleteFocus/"+name;
    }
}

</script>
<table border="0" align="center" cellpadding="0" cellspacing="1" class="list">
<tr>
<td>
<div style="padding:10px">
<strong>增加焦点图  (请注意自行控制图片大小，先调整尺寸后再上传，尺寸：600x210)</strong><br />
<form action="<?=SystemProperties::$app_host?>/user/addFocus" method="POST" enctype="multipart/form-data">
图片：<br /><input type="file" name="photo" id="photo"> &nbsp;&nbsp;&nbsp;<br />
标题文字：<br /><input type="text" name="title" id="title" style="width:400px"> &nbsp;&nbsp;&nbsp;<br />
URL：<br /><input type="text" name="url" id="url" style="width:400px"> &nbsp;&nbsp;&nbsp;<br />
提示：<br />
打开商品url请填写<b>javascript:showProduct(id)</b>   id替换为数字id<br />
打开兑换商品url请填写<b>javascript:showChangeProduct(id)</b>   id替换为数字id<br />
<input class="comment_btn_Submit"  type="submit"  value="增加" />
</form>
<br /><br /><br />
<strong>管理焦点图</strong> <br /><br />
<?php foreach ($focou as $da) { 
	?>
	<br /><br />
	<table cellpadding="0" cellspacing="0">
	<tr>
	<td>图片：</td><td> <strong><img src="<?=$img_url?><?=$da['photo']?>" width="120" /></strong>
	<a href="javascript:deleteFocus('<?=$da['photo'] ?>')"> [删除]</a>
	</td>
	</tr>
	<tr>
	<td>标题文字：</td><td> <strong><?=$da['title']?></strong></td>
	</tr>	
	<tr>
	<tr>
	<td>url：</td><td> <strong><?=$da['url']?></strong></td>
	</tr>	
	</table>
	
	
<?php } ?>

</div>
</td>
</tr>
</table>


